import request from '../utils/request';

// 车辆查询
export function queryCarList (data) {
    return request({
        apiType:'CAR',
        url: '/web/car/list',
        method: 'post',
        data
    });
};

// 车辆查询
export function carBizSearch (data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/web/car/biz/search',
        method: 'post',
        data
    });
};

// 任务创建
export function postWeekOccupy (data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/web/car/week/occupy',
        method: 'post',
        data
    });
};

//
export function postTaskApplyHistory (data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/web/car/apply/history',
        method: 'post',
        data
    });
};

export function carLock (data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/web/car/lock',
        method: 'post',
        data
    });
};


export function carUnlock (data) {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/web/car/unlock',
        method: 'post',
        data
    });
};

export function getAllCarVins () {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/web/car/getAllCarVins',
        method: 'post',
    });
};



export function issueInsert () {
    return request({
        apiType:'CAR',
        requestBaseUrl:'carmanage',
        url: '/api/issue/insert',
        method: 'post',
    });
};